<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>    
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<link rel="stylesheet" href="css/jquery-ui-1.10.3.custom.css" />

<title>Add Visitor</title>
</head>
<body>

<h1><spring:message code="admin.welcome"/></h1>
<form:form id="adminForm" modelAttribute="person">
	<table>
		<tr>
			<td><label><spring:message code="visitor.firstName"/></label> </td>
			<td><form:input id="firstName" path="firstName"/></td>
		</tr>
		<tr>
			<td><label><spring:message code="visitor.lastName"/></label></td>
			<td><form:input id="lastName" path="lastName"/></td>
		</tr>
		<tr>
			<td><label><spring:message code="visitor.phoneNumber"/></label></td>
			<td><form:input id="phoneNumber" path="phoneNumber"/></td>
		</tr>
		<tr>
			<td><label><spring:message code="company.name"/></label></td>
			<td>
				<form:select id="companyName" path="company.companyName" class="required">
					  <form:option value="" label="Select" />
					  <form:options items="${companyList}" />
				</form:select>
			</td>
		</tr>
		<tr>
			<td><label><spring:message code="visitor.visitDate"/></label></td>
			<td><form:input id="datepicker" path="visitingDate"/></td>
		</tr>
	</table>
	
	<input type="submit" value="Add Visitor">
	
</form:form>

<script src="<c:url value="js/jquery.js"/>" type="text/javascript"></script>
<script src="<c:url value="js/jquery-ui-1.10.3.custom.js"/>" type="text/javascript"></script>
<script src="<c:url value="js/jquery.validate.js"/>" type="text/javascript"></script>
<script src="<c:url value="js/additional-methods.js"/>" type="text/javascript"></script>
<script src="<c:url value="js/my_script.js"/>" type="text/javascript"></script>

</body>
</html>